import request from '@/utils/request'

// 查询测试列表
export function listActive(query) {
  return request({
    url: '/teacher/active/list',
    method: 'get',
    params: query
  })
}

// 查询测试详细
export function getActive(id) {
  return request({
    url: '/teacher/active/' + id,
    method: 'get'
  })
}

// 新增测试
export function addActive(data) {
  return request({
    url: '/teacher/active/add',
    method: 'post',
    data: data
  })
}

// 修改测试
export function updateActive(data) {
  return request({
    url: '/teacher/active/update',
    method: 'post',
    data: data
  })
}

// 删除测试
export function delActive(id) {
  return request({
    url: '/teacher/active/' + id,
    method: 'post'
  })
}
